.TH "/Users/matthieuriolo/Downloads/libgenc/branches/riolo/trunk/include/gen/error_macros.h" 3 "Wed Jan 11 2012" ""c generic library"" \" -*- nroff -*-
.ad l
.nh
.SH NAME
/Users/matthieuriolo/Downloads/libgenc/branches/riolo/trunk/include/gen/error_macros.h \- 
.SH SYNOPSIS
.br
.PP
.SS "Defines"

.in +1c
.ti -1c
.RI "#define \fBUNUSED\fP   __attribute__((__unused__))"
.br
.ti -1c
.RI "#define \fBSUCCESS\fP   0x00"
.br
.ti -1c
.RI "#define \fBEINVAL\fP   0x02"
.br
.ti -1c
.RI "#define \fBENOVAL\fP   0x03"
.br
.ti -1c
.RI "#define \fBEEMPTY\fP   0x04"
.br
.ti -1c
.RI "#define \fBEALLOCF\fP   0x05"
.br
.ti -1c
.RI "#define \fBENOPRINT\fP   0x06"
.br
.ti -1c
.RI "#define \fBENOCMP\fP   0x07"
.br
.ti -1c
.RI "#define \fBEOOB\fP   0x01"
.br
.ti -1c
.RI "#define \fBENORCMP\fP   0x08"
.br
.ti -1c
.RI "#define \fBENOALOC\fP   0x10"
.br
.ti -1c
.RI "#define \fBENOFREE\fP   0x20"
.br
.ti -1c
.RI "#define \fBENOCOPY\fP   0x30"
.br
.ti -1c
.RI "#define \fBERRORINFO\fP   __FILE__,__func__,__LINE__"
.br
.ti -1c
.RI "#define \fBERRORHDR\fP   printf('%s:%s:%d - ',__FILE__,__func__,__LINE__);"
.br
.ti -1c
.RI "#define \fBNULLMSG\fP(X)   do{}while(0)"
.br
.ti -1c
.RI "#define \fBALLOCFAIL\fP(X)   do{}while(0)"
.br
.ti -1c
.RI "#define \fBERRORMSG\fP(X)   do{}while(0)"
.br
.ti -1c
.RI "#define \fBCHECK_VARN\fP(X, Y)"
.br
.ti -1c
.RI "#define \fBCHECK_VARE\fP(X, Y)"
.br
.ti -1c
.RI "#define \fBCHECK_VARA\fP(X, Y)"
.br
.ti -1c
.RI "#define \fBCHECK_OBJSIZE\fP(X, Y, Z)"
.br
.in -1c
.SH "Define Documentation"
.PP 
.SS "#define ALLOCFAIL(X)   do{}while(0)"
.PP
Definition at line 42 of file error_macros.h.
.SS "#define CHECK_OBJSIZE(X, Y, Z)"\fBValue:\fP
.PP
.nf
do {\
        if(O((X)) != (Y)) {\
                fprintf(stderr,'%s:%s:%d - Invalid object size(%d), should be %d\n',ERRORINFO,(Y),O((X)));\
                return (Z);\
        }\
}while(0)
.fi
.PP
Definition at line 96 of file error_macros.h.
.SS "#define CHECK_VARA(X, Y)"\fBValue:\fP
.PP
.nf
do {\
        if(!(X)) {\
                ALLOCFAIL((X));\
                return (Y);\
        }\
}while(0)
.fi
.PP
Definition at line 75 of file error_macros.h.
.SS "#define CHECK_VARE(X, Y)"\fBValue:\fP
.PP
.nf
do {\
        if(!(X)) {\
                ERRORMSG((X));\
                return (Y);\
        }\
}while(0)
.fi
.PP
Definition at line 65 of file error_macros.h.
.SS "#define CHECK_VARN(X, Y)"\fBValue:\fP
.PP
.nf
do {\
        if(!(X)) {\
                NULLMSG((X));\
                return (Y);\
        }\
}while(0)
.fi
.PP
Definition at line 55 of file error_macros.h.
.SS "#define EALLOCF   0x05"
.PP
Definition at line 15 of file error_macros.h.
.SS "#define EEMPTY   0x04"
.PP
Definition at line 14 of file error_macros.h.
.SS "#define EINVAL   0x02"
.PP
Definition at line 12 of file error_macros.h.
.SS "#define ENOALOC   0x10"
.PP
Definition at line 20 of file error_macros.h.
.SS "#define ENOCMP   0x07"
.PP
Definition at line 17 of file error_macros.h.
.SS "#define ENOCOPY   0x30"
.PP
Definition at line 22 of file error_macros.h.
.SS "#define ENOFREE   0x20"
.PP
Definition at line 21 of file error_macros.h.
.SS "#define ENOPRINT   0x06"
.PP
Definition at line 16 of file error_macros.h.
.SS "#define ENORCMP   0x08"
.PP
Definition at line 19 of file error_macros.h.
.SS "#define ENOVAL   0x03"
.PP
Definition at line 13 of file error_macros.h.
.SS "#define EOOB   0x01"
.PP
Definition at line 18 of file error_macros.h.
.SS "#define ERRORHDR   printf('%s:%s:%d - ',__FILE__,__func__,__LINE__);"
.PP
Definition at line 28 of file error_macros.h.
.SS "#define ERRORINFO   __FILE__,__func__,__LINE__"
.PP
Definition at line 25 of file error_macros.h.
.SS "#define ERRORMSG(X)   do{}while(0)"
.PP
Definition at line 50 of file error_macros.h.
.SS "#define NULLMSG(X)   do{}while(0)"
.PP
Definition at line 34 of file error_macros.h.
.SS "#define \fBSUCCESS\fP   0x00"
.PP
Definition at line 11 of file error_macros.h.
.SS "#define UNUSED   __attribute__((__unused__))"
.PP
Definition at line 10 of file error_macros.h.
.SH "Author"
.PP 
Generated automatically by Doxygen for 'c generic library' from the source code.
